import Vue from 'vue'
import Router from 'vue-router'
import EmpPage from "../components/EmpPage";
import InserEmp from "../components/InserEmp";
import LoginEmp from "../components/LoginEmp";
import UpdateEmp from "../components/UpdateEmp";
// 加载导入组件

Vue.use(Router)

export default new Router({
  routes: [ // 配置路由,设置路径和组件之间的关联
    {
      path:'/EmpPage',
      name:'EmpPage',
      component:EmpPage
    },
    {
      path:'/InserEmp',
      name:'InserEmp',
      component:InserEmp
    },
    {
      path:'/LoginEmp',
      name:'LoginEmp',
      component:LoginEmp
    },
    {
      path:'/UpdateEmp',
      name:'UpdateEmp',
      component:UpdateEmp
    }
  ],
  mode: "history"
})
